package cn.edu.sdjzu.xg.kcsj.domain;

import java.io.Serializable;
import java.math.BigInteger;

public class Dictionary implements Comparable<Dictionary>, Serializable {
    private BigInteger id;
    private String description;
    private String dict_code;
    public Dictionary(BigInteger id, String description, String dict_code){
        super();
        this.id = id;
        this.description = description;
        this.dict_code = dict_code;
    }

    public BigInteger getId() {
        return id;
    }

    public String getDescription() {
        return description;
    }

    public String getDictCode() {
        return dict_code;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setDictCode(String dict_code) {
        this.dict_code = dict_code;
    }
    public String toString()
    {
        final String TAB = " ";
        String retValue = "";
        retValue = "Dictionary ( "
                + super.toString() + TAB
                + "id = " + this.id + TAB
                + "description = " + this.description + TAB
                + "dict_code = " + this.dict_code + TAB
                + " )";

        return retValue;
    }
    @Override
    public int compareTo(Dictionary o) {
        return this.id.compareTo(o.id);
    }
}
